package com.tanhua.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @program: tanhua
 * @description: 用户信息实体类
 * @author: leiyukun
 * @create: 2022-03-23 15:26
 **/
@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserInfo implements Serializable {
    /**
     * 由于userinfo表和user表之间是一对一关系
     *   userInfo的id来源于user表的id
     */
    @TableId(type= IdType.INPUT)
    //用户id
    private Long id;
    //昵称
    private String nickname;
    //用户头像
    private String avatar;
    //生日
    private String birthday;
    //性别
    private String gender;
    //年龄
    private Integer age;
    //城市
    private String city;
    //收入
    private String income;
    //学历
    private String education;
    //行业
    private String profession;
    //婚姻状态
    private Integer marriage;
    //用户标签：多个用逗号分隔
    private String tags;
    // 封面图片
    private Date created;
    private String coverPic;
    private Date updated;

    //用户状态,1为正常，2为冻结
    @TableField(exist = false)
    private String userStatus = "1";
}
